import request from "@/utils/request";


// 获取所有系统用户列表
export const queryAllArticle = (page, pageSize,title,userId) =>
    request.get('/article/search', {
        params: {
            page, pageSize,title,userId
        }
    }).then((result)=>result.data);


// 添加
export const addArticle = (article) =>
    request.post('/article/add', article).then((result)=>result.data);
// 获取所有系统用户列表
export const updateArticle = (article) =>
    request.put('/article/update', article).then((result)=>result.data);

// 删除
export const deleteArticle = (ids) =>
    request.put('/article/delete', ids).then((result)=>result.data);